Sounds like you didn't have enough settled cash in your account. If you lack settled cash, you have to wait T+2 days before you can trade again.